package com.geniusk.system.service.impl;

import com.geniusk.system.model.mapper.ModelEventMapper;
import com.geniusk.system.model.mapper.ModelPropertyMapper;
import com.geniusk.system.model.pojo.ModelEvent;
import com.geniusk.system.service.ModelEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ModelEventServiceImpl implements ModelEventService {

    @Autowired
    private ModelEventMapper modelEventMapper;

    @Override
    public List<ModelEvent> selectModelEventByModelId(Long modelId) {
        return modelEventMapper.selectModelEventByModelId(modelId);
    }

    @Override
    public ModelEvent selectModelEventById(Long modelEventId) {
        return modelEventMapper.selectModelEventById(modelEventId);
    }

    @Override
    public int insertModelEvent(ModelEvent modelEvent) {
        return modelEventMapper.insertModelEvent(modelEvent);
    }

    @Override
    public int updateModelEvent(ModelEvent modelEvent) {
        return modelEventMapper.updateModelEvent(modelEvent);
    }

    @Override
    public int deleteModelEventByIds(Long[] ids) {
        return modelEventMapper.deleteModelEventByIds(ids);
    }
}
